package org.example.petadoption.service.impl;

import org.example.petadoption.entity.MerchantInfoDTO;
import org.example.petadoption.entity.User;
import org.example.petadoption.mapper.UserMapper;
import org.example.petadoption.service.IUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户表 服务实现类
 * </p>
 *
 * @author PetAdoption
 * @since 2025-10-20
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public MerchantInfoDTO getMerchantInfoByUserId(int id) {
        return userMapper.selectMerchantInfoByUserId(id);
    }

}
